const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [],
    card: '' //搜索卡号
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.getDeductionRecord();
  },
  // 获取扣费记录
  getDeductionRecord() {
    let data = {};
    if (this.data.card) data.card = this.data.card;
    app.call.request('wxapp/getDeductionRecord', data, (res) => {
      console.log(res);
      let data = res.data;
      this.setData({ list: data })
    })
  },
})